<template>
	<div>
		<div class="title" @click="comeBack()">
			<image src="../../static/icon_arrow_blue_left.png"></image>
			文章详情
		</div>
		
		<div v-html="content"></div>
		<image @click="comeArticleList()" class="return_icon"  src="../../static/return.svg"></image>
	
		
	</div>
</template>

<script lang="ts">
	import {request} from "../../Providing/request"
	export default {
		data() {
			return {
				content:"",
			};
		},
		methods:{
			comeBack() {
				uni.$emit('goToHome');
			},
			getArticleDetail(){
				new request().getArticleDetail().then((res)=>{
					this.content=res['content'];
				})
			},
			comeArticleList() {
				uni.$emit('goToArticleList');
			},
		},
		created() {
			this.getArticleDetail()
		}
	}
</script>

<style lang="scss">

.return_icon{
	border-radius: 25%;
	width: 100px;
	height: 100px;
	position: fixed;
	bottom:100px;
	right: 50px;
	z-index: 9999;
}
</style>
